FROM openjdk:17.0.2-jdk

MAINTAINER dongpeng

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

#RUN mkdir -p /jeecg-boot/config/jeecg/

VOLUME /data/wms-server-jeecg

RUN mkdir -p /data/wms-server-jeecg

WORKDIR /data/wms-server-jeecg

EXPOSE 8080

#ADD ./src/main/resources/jeecg ./config/jeecg
ADD ./jeecg-system-start-3.5.2.jar /data/wms-server-jeecg/jeecg-system-start-3.5.2.jar

ENV TZ=Asia/Shanghai JAVA_OPTS="-server -Xms256m -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.net.util=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED"

CMD java ${JAVA_OPTS} -jar jeecg-system-start-3.5.2.jar